//package org.jeecg.modules.iot.middleware.kafka.consumer;
//
//import com.influxdb.client.InfluxDBClient;
//import com.influxdb.client.InfluxDBClientFactory;
//import com.zaxxer.hikari.HikariConfig;
//import com.zaxxer.hikari.HikariDataSource;
//
//import java.sql.Connection;
//import java.sql.DriverManager;
//import java.sql.SQLException;
//import java.sql.Statement;
//
//public class TDengineSync {
//    public static void main(String[] args) {
//        String url = "jdbc:TAOS-RS://127.0.0.1:6041?useSSL=false&user=root&password=123456"; // JDBC连接字符串
//
//
//        InfluxDBClient influxDBClient =  InfluxDBClientFactory.create("http://localhost:8086");
//        System.out.println(influxDBClient.ping());
//
//        System.out.println(url);
//        try(Connection conn = DriverManager.getConnection(url)) {
//            try(Statement stmt = conn.createStatement()) {
//                stmt.executeQuery("select server_version()");
//
//            } catch (SQLException e) {
//                throw new RuntimeException(e);
//            }
//        } catch (SQLException e) {
//            throw new RuntimeException(e);
//        }
//    }
//}
